﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyFrameWork.Dam;
using System.Data;

namespace MvcApplication5.DAM.Control
{
    public class ControlDAM : DataDAM
    {
        public ControlDAM()
        {
            this.CreateDataBase("MAINDB");
        }
        public DataSet GetMenu(string parent_id)
        {
            ConditionList conditionList = new ConditionList(ConditionList.ConditionType.AND);

            conditionList.Add("parent_id", ConditionList.EquipType.EQUIP, parent_id);

            return this.SelectData("TB_menu", "*", conditionList, null);
        }
    }
}